package com.felix.pattern.wrapper;

/**
 * PeiCai
 *
 * @author xuejinhua
 * @date 2019/1/15 18:12
 */
public class PeiCai implements GuoDi {
    private GuoDi guodi;

    public PeiCai(GuoDi guodi) {
        super();
        this.guodi = guodi;
    }

    /**
     * 锅底的价格
     *
     * @return
     */
    @Override
    public float cost() {
        return guodi.cost();
    }

    /**
     * 锅底的名字
     *
     * @return
     */
    @Override
    public String name() {
        return guodi.name();
    }
}
